import request from '@/utils/request.js'

// 获取个人信息
export const info = () => request({
  url: '/v1_0/user/profile'
})

// 修改昵称、性别、生日
export const name = (data) => request({
  method: 'PATCH',
  url: '/v1_0/user/profile',
  data
})

// 修改照片
export const setPhoto = (data) => request({
  method: 'PATCH',
  url: '/v1_0/user/photo',
  data
})
